using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for objNTV_kinh_nghiem
/// </summary>
public class objNTV_hoc_van
{
    Common comm = new Common();
    DataRow row;

    private  string _ma_hoc_van, _ma_chuyen_mon, _ma_hang_tn;
    private string _ten_hoc_van="", _ten_chuyen_mon="", _ten_hang_tn="";
    private string _kinh_nghiem;
    private string _mo_ta;

    public objNTV_hoc_van() { }

    public string ma_chuyen_mon
    {
        get
        {
            return _ma_chuyen_mon;
        }
        set
        {
            this._ma_chuyen_mon = value;

        }
    }
    public string kinh_nghiem
    {
        get
        {
            return _kinh_nghiem;
        }
        set
        {
            this._kinh_nghiem = value;

        }
    }
    public string ma_hoc_van
    {
        get
        {
            return _ma_hoc_van;
        }
        set
        {
            this._ma_hoc_van = value;

        }
    }
    public string ma_hang_tn
    {
        get
        {
            return _ma_hang_tn;
        }
        set
        {
            this._ma_hang_tn = value;

        }
    }
    public string mo_ta
    {
        get
        {
            return _mo_ta;
        }
        set
        {
            this._mo_ta = value;

        }
    }
    public string ten_hoc_van
    {
        get
        {
            return _ten_hoc_van;
        }
    }
    public string ten_chuyen_mon
    {
        get
        {
            return _ten_chuyen_mon;
        }
    }
    public string ten_hang_tn
    {
        get
        {
            return _ten_hang_tn;
        }
    }
    public void getName()
    {
        if(!string.IsNullOrEmpty(_ma_chuyen_mon)) 
            _ten_chuyen_mon=comm.getDataTable("select ten_chuyen_mon from DanhMuc_chuyen_mon where ma_chuyen_mon='"+_ma_chuyen_mon+"'").Rows[0][0].ToString();
        if (!string.IsNullOrEmpty(_ma_hoc_van))
            _ten_hoc_van = comm.getDataTable("select ten_hoc_van from DanhMuc_hoc_van where ma_hoc_van='" + _ma_hoc_van + "'").Rows[0][0].ToString();
        if (!string.IsNullOrEmpty(_ma_hang_tn))
            _ten_hang_tn = comm.getDataTable("select ten_hang_tn from DanhMuc_hang_tot_nghiep where ma_hang_tn='" + _ma_hang_tn + "'").Rows[0][0].ToString();
    }
}
